wayland: Strip newlines from g_warning and g_error
authorMatthias Clasen <mclasen@redhat.com>
Sun, 28 Feb 2016 17:21:09 +0000 (12:21 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 28 Feb 2016 17:23:12 +0000 (12:23 -0500)
g_logv adds one for us already.

gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkselection-wayland.c

index 7093a15576f0ff89b8cb031238f580e967e1eaec..4d0a2275a6d50c297345ec3962647cc777f08f4f 100644 (file)
@@ -814,7 +814,7 @@ gdk_wayland_display_set_cursor_theme (GdkDisplay  *display,
   theme = wl_cursor_theme_load (name, size, wayland_display->shm);
   if (theme == NULL)
     {
-      g_warning ("Failed to load cursor theme %s\n", name);
+      g_warning ("Failed to load cursor theme %s", name);
       return;
     }
 
@@ -853,7 +853,7 @@ _gdk_wayland_display_get_scaled_cursor_theme (GdkWaylandDisplay *wayland_display
                                     wayland_display->shm);
       if (theme == NULL)
         {
-          g_warning ("Failed to load cursor theme %s with scale %u\n",
+          g_warning ("Failed to load cursor theme %s with scale %u",
                      wayland_display->cursor_theme_name, scale);
           return NULL;
         }
index eff802eec2634c8bc90550f0af856aba280ba8dc..30f35461f7537a4d9022d9ea0e4dd8512ba8f32b 100644 (file)
@@ -258,7 +258,7 @@ selection_buffer_read_cb (GObject      *object,
     {
       if (error)
         {
-          g_warning (G_STRLOC ": error reading selection buffer: %s\n", error->message);
+          g_warning (G_STRLOC ": error reading selection buffer: %s", error->message);
           g_error_free (error);
         }
       else